package org.fnzn.thread;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.fnzn.bean.vo.User;
import org.fnzn.core.Result;
import org.fnzn.service.LrdOrgService;
import org.fnzn.service.SysDicService;

@Service
public class AsyncTaskServcie {
	
	@Autowired
	SysDicService SysDicService;
	@Autowired
	LrdOrgService LrdOrgService;
	@Async
	public Result executeAsyncTaskPlus(String parentId){		
		return SysDicService.finSysDicByParentId(parentId);
	}
	
	@Async
	public Result executeAsyncTas(User user, Map<String, Object> map){
		return LrdOrgService.queryMenu(user,map);
	}
}
